package com.analysis.mapper;

import com.analysis.entity.BrandExposureSnapshotDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BrandExposureSnapshotDetailMapper {
    int insert(BrandExposureSnapshotDetail detail);

    int deleteById(@Param("id") Long id);

    int deleteByProjectIdAndSnapshotId(@Param("projectId") Long projectId, @Param("snapshotId") Long snapshotId);

    int update(BrandExposureSnapshotDetail detail);

    String selectById(@Param("id") Long id);

    String selectByProjectIdAndSnapshotId(@Param("projectId") Long projectId, @Param("snapshotId") Long snapshotId);

    BrandExposureSnapshotDetail getByProjectIdAndSnapshotId(@Param("projectId") Long projectId, @Param("snapshotId") Long snapshotId);

    List<BrandExposureSnapshotDetail> selectByProjectId(@Param("projectId") Long projectId);
}


